package cn.edu.ctbu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * Hello world!
 *
 */
@EnableGlobalMethodSecurity(prePostEnabled = true)  // 开启权限控制, prePostEnabled = true 表示使用@PreAuthorize注解
@SpringBootApplication
public class SpringBootDemoApplication {

    public static void main( String[] args ) {
        SpringApplication.run(SpringBootDemoApplication.class,args);
    }
}
